package com.ruoyi.monitor.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 操作日志对象 monitor_operation_log
 * 
 * @author ruoyi
 * @date 2025-04-16
 */
public class MonitorOperationLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer logId;

    /** 操作人ID */
    @Excel(name = "操作人ID")
    private Integer userId;

    /** 操作类型 */
    @Excel(name = "操作类型")
    private String operation;

    /** 目标ID */
    @Excel(name = "目标ID")
    private Integer targetId;

    /** 操作详情 */
    @Excel(name = "操作详情")
    private String operationDetail;

    /** 客户端IP */
    @Excel(name = "客户端IP")
    private String ipAddress;

    public void setLogId(Integer logId) 
    {
        this.logId = logId;
    }

    public Integer getLogId() 
    {
        return logId;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setOperation(String operation) 
    {
        this.operation = operation;
    }

    public String getOperation() 
    {
        return operation;
    }

    public void setTargetId(Integer targetId) 
    {
        this.targetId = targetId;
    }

    public Integer getTargetId() 
    {
        return targetId;
    }

    public void setOperationDetail(String operationDetail) 
    {
        this.operationDetail = operationDetail;
    }

    public String getOperationDetail() 
    {
        return operationDetail;
    }

    public void setIpAddress(String ipAddress) 
    {
        this.ipAddress = ipAddress;
    }

    public String getIpAddress() 
    {
        return ipAddress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("userId", getUserId())
            .append("operation", getOperation())
            .append("targetId", getTargetId())
            .append("operationDetail", getOperationDetail())
            .append("ipAddress", getIpAddress())
            .append("createTime", getCreateTime())
            .toString();
    }
}
